package com.dreamwhale.machinery.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dreamwhale.machinery.goods.entity.DriverInfo;
import com.dreamwhale.machinery.goods.entity.DriverWorkInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 司机找工作 服务类
 * </p>
 *
 * @author Author
 * @since 2020-05-28
 */
public interface DriverWorkInfoService extends IService<DriverWorkInfo> {

    /**
     * 发布找工作
     *
     * @param driverWorkInfo
     * @return
     */
    int insertDriverWorkInfos(DriverWorkInfo driverWorkInfo);


    /**
     * 查询发布司机找工作
     *
     * @param userId
     * @return
     */
    List<DriverWorkInfo> selectDriverWorkInfoMap(Integer userId);

    /**
     * 查询发布司机找工作
     *
     * @param
     * @return
     */
    List<DriverWorkInfo> selectDriverWorkInfos(Integer indoId);


    /**
     * 查询发布司机找工作详情
     *
     * @param infoId
     * @return
     */
    DriverWorkInfo selectDriverWorkInfoByTypeId(@Param("infoId") Integer infoId);

    /**
     * 查询找工作
     *
     * @param salaryMin
     * @param salaryMax
     * @param years
     * @param province
     * @param city
     * @param type
     * @param types
     * @return
     */
    List<DriverWorkInfo> selectDriverWorkInfoHome(Integer salaryMin, Integer salaryMax, Integer years, String province, String city, Integer type,
                                                  Integer types, String title, String driveTypeId);
}
